package com.ceba.test.modules.email.logicService;

import com.ceba.test.modules.email.entity.EmailEntity;

import java.util.Map;


public class CustomContentEmail extends TemplateContentEmail{
	private String customContent;//自定義的個性簽名
	public CustomContentEmail(EmailEntity emailEntity, Map<String, String> templateMap,String customContent) {
		super(emailEntity, templateMap);
		this.customContent=customContent;
	}
	
	@Override
	public String content() {
		EmailEntity emailEntity=super.getEmailEntity();
		String content=emailEntity.getContent()+customContent;
		emailEntity.setContent(content);
		return super.content();
	}
	
	public String getCustomContent() {
		return customContent;
	}
	public void setCustomContent(String customContent) {
		this.customContent = customContent;
	}
}
